July 31, 2024
v3 Get eSIM Packages
Description:
Retrieves a list of esim packages.
URI:
https://api.multitel.net/v3/get_esim_packages
Parameters:
N/A
Methods:
POST/GET
Sample output:
{ "status": { "code": 200, "msg": "" }, "response": [ { "id": "2a5d1665d029a6ec38ddee304a49b1a3", "iso": "AD", "type": "sim", "price": "4.32", "amount": "3000", "day": "5", "is_unlimited": "0", "title": "Andorra 3000 MiB - 5 Days", "data": "3000 MiB", "short_info": null, "qr_installation": null, "manual_installation": null, "voice": null, "text": null, "net_price": "0.00" }, { "id": "3d96dbc6c13d2098a0005af8f9974f6e", "iso": "AD", "type": "sim", "price": "6.48", "amount": "5000", "day": "5", "is_unlimited": "0", "title": "Andorra 5000 MiB - 5 Days", "data": "5000 MiB", "short_info": null, "qr_installation": null, "manual_installation": null, "voice": null, "text": null, "net_price": "0.00" } ] }
Sample code:
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://api.multitel.net/v3/get_esim_packages', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'GET', CURLOPT_HTTPHEADER => array( 'Accept: application/json' ), )); $response = curl_exec($curl); curl_close($curl); echo $response;